#pragma once
#include <string>
#include <iostream>
#include <sstream>

using namespace std;

class InterestTable
{
protected:
        bool coding;
        bool horses;
        bool magic;
        bool party;
        bool yoga;

public:
        InterestTable()
        {
                coding = false;
                horses = false;
                magic = false;
                party = false;
                yoga = false;
        }
        //--------------------------------------------------------
        void setCoding(bool x) { coding = x; } 
        void setHorses(bool x) { horses = x; }
        void setMagic(bool x) { magic = x; }
        void setParty(bool x) { party = x; }
        void setYoga(bool x) { yoga = x; }
        void setInterest(bool coding, bool horses, bool magic, bool party, bool yoga)
        {
                this->coding = coding;
                this->horses = horses;
                this->magic = magic;
                this->party = party;
                this->yoga = yoga;
        }

        bool getCoding() { return coding; } 
        bool getHorses() { return horses; }
        bool getMagic() { return magic; }
        bool getParty() { return party; }
        bool getYoga() { return yoga; }

        string getInterests()
        {
                ostringstream oss;
                oss << coding << horses << magic << party << yoga;
                return oss.str();
        }

        ~InterestTable()
        {
        }

};

